using System;
using System.Collections.Generic;

namespace Tools.ExcelToJson.Editor
{
    internal static class AssemblyUtils
    {
        public static Type[] GetAllTypes()
        {
            var results = new List<Type>();
            foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
            {
                var types = assembly.GetTypes();
                results.AddRange(types);
            }

            return results.ToArray();
        }
    }
}
